package com.cold.demo.template.websocket;

import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 
 * @Author x c
 * @Email 378661553@qq.com
 * @Date Created in 2020/1/14 12:35
 *
 * 用于开启自定义的WebSocket服务类 {@link WebSocketServer }
 * 开启 WebSocket 服务
 *      路径：ws://ip:port/{contextPath}/websocket/{userId}
 *      例　：ws://127.0.0.1:80/websocket/1
 *
 * 如果需要进行测试可以去 http://www.websocket-test.com/ 进行测试
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(WebSocketConfig.class)
@Documented
public @interface EnableMyWebSocket {
}
